package backend.cms.controller;

import backend.cms.manager.CmsManager;
import core.cms.model.Block;

import com.opensymphony.xwork2.ActionSupport;

public class GetCmsController extends ActionSupport{

	private static final long serialVersionUID = 14343L;
	 Block lstblock ;
	private CmsManager cmsmanager ;
	private String identifier;
	public GetCmsController()
	{
		cmsmanager =  new CmsManager();
	}
	public String execute() {
		this.lstblock = cmsmanager.getBlockByIdentifier(identifier);
		return SUCCESS ;
	}
	public Block getLstblock() {
		return lstblock;
	}
	public void setLstblock(Block lstblock) {
		this.lstblock = lstblock;
	}
	public String getIdentifier() {
		return identifier;
	}
	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}

	
}
